package edu.etime.xsj.goods.service.services.impl;

import edu.etime.xsj.goods.service.dao.GoodsTypeDao;
import edu.etime.xsj.goods.service.pojo.GoodsType;
import edu.etime.xsj.goods.service.services.interfaces.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品类型管理service实现类
 */
@Service
public class GoodsTypeServiceImpl implements GoodsTypeService {
    @Autowired
    private GoodsTypeDao dao;
    /**
     * 查询所有的商品类型
     *
     * @return
     */
    @Override
    public List<GoodsType> selectAllGoodsType() {
        return dao.selectList(null);
    }
}
